<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Pracainzynierska: Dokumentacja pliku src/main.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Wygenerowano przez Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku src/main.h</h1>
<p>
<div class="dynheader">
Ten wykres pokazuje, które pliki bezpośrednio lub pośrednio załączają ten plik:</div>
<div class="dynsection">
<p><center><img src="main_8h__dep__incl.png" border="0" usemap="#src/main.hdep_map" alt=""></center>
<map name="src/main.hdep_map">
<area shape="rect" href="main_8c.html" title="src/main.c" alt="" coords="5,80,88,107"></map>
</div>

<p>
<a href="main_8h-source.html">Idź do kodu źródłowego tego pliku.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Definicje</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#e00a20f61164fb74cb09105d2f4348c8">MSK_P</a>&nbsp;&nbsp;&nbsp;1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#c4c455795b32257010c9be2b845bddce">MSK_P_</a>&nbsp;&nbsp;&nbsp;2</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#4c4b917a9256232b587e9af27900045e">MSK_W</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#fe6b2fe5bc7084afbe5f76d0e4be4d0f">MSK_V</a>&nbsp;&nbsp;&nbsp;8</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#b46c763f901435183a60a90c8065135f">MSK_V_</a>&nbsp;&nbsp;&nbsp;16</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#072e387394eca86e5be43efef72251cf">MSK_XR</a>&nbsp;&nbsp;&nbsp;128</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#58961bee5268baf32d9ca9ac51bcf126">MSK_INDEX</a>&nbsp;&nbsp;&nbsp;512</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#7f0b6817300121163223ef6a0a6303f5">MSK_TYTUL</a>&nbsp;&nbsp;&nbsp;1024</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#48cb32c9244f6514855c55833365e915">MSK_BASIC</a>&nbsp;&nbsp;&nbsp;13</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#13b3446f7260cfaa3b9d96fcb961bcc2">MSK_ALL</a>&nbsp;&nbsp;&nbsp;1023</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#6c2e0ef3768d7df3cd7565c3d4d5a944">SORT_I</a>&nbsp;&nbsp;&nbsp;1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#f2c5fd4a2157bbaddee5c93c0cbebb2f">SORT_K</a>&nbsp;&nbsp;&nbsp;2</td></tr>

<tr><td colspan="2"><br><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#80c4e8d2623ecf8dd7f52e97fff4a981">AlokujPamiec</a> (int)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dynamiczny alokator danych.  <a href="#80c4e8d2623ecf8dd7f52e97fff4a981"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#86892a380cb93ebd030dba5a6302be06">InicjujDane</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inicjalizuje czesc wektorow.  <a href="#86892a380cb93ebd030dba5a6302be06"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#362a3c1431859c5851d11cf139c74b31">SortujB</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#647b0fdf81ddfa7573e0f8fcd0708e13">KP01_D</a> = &quot;param <a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>;\nparam <a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\nparam <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nvar x {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0;\nvar b {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0, integer;\n\ns.t. ogr_1 { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tx[i] &lt;= b[i];\n\ns.t. binar { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tb[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a>[i] &lt;= <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\n\ns.t. liczba_elementow:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} b[i] &lt;= <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nmaximize z:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a>[i];\n\nend;\n&quot;</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#689c7814b58c9ff6a60412016bb1ab9f">KP01_R</a> = &quot;param <a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>;\nparam <a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\nparam <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nvar x {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0;\n\ns.t. ogr_1 { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tx[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a>[i] &lt;= <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\n\ns.t. liczba_elementow:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i] &lt;= <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nmaximize z:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a>[i];\n\nend;\n&quot;</td></tr>

</table>
<hr><h2>Dokumentacja definicji</h2>
<a class="anchor" name="13b3446f7260cfaa3b9d96fcb961bcc2"></a><!-- doxytag: member="main.h::MSK_ALL" ref="13b3446f7260cfaa3b9d96fcb961bcc2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_ALL&nbsp;&nbsp;&nbsp;1023          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00014">14</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01078">Relaksacja()</a>.</p>

</div>
</div><p>
<a class="anchor" name="48cb32c9244f6514855c55833365e915"></a><!-- doxytag: member="main.h::MSK_BASIC" ref="48cb32c9244f6514855c55833365e915" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_BASIC&nbsp;&nbsp;&nbsp;13          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00013">13</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="58961bee5268baf32d9ca9ac51bcf126"></a><!-- doxytag: member="main.h::MSK_INDEX" ref="58961bee5268baf32d9ca9ac51bcf126" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_INDEX&nbsp;&nbsp;&nbsp;512          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska indeksow - i(pierwotne) oraz k(kolejnosci dochodow 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00011">11</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01305">AlgorytmH1()</a>, <a class="el" href="main_8c-source.html#l00882">PoprawLambda()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e00a20f61164fb74cb09105d2f4348c8"></a><!-- doxytag: member="main.h::MSK_P" ref="e00a20f61164fb74cb09105d2f4348c8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_P&nbsp;&nbsp;&nbsp;1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje wektor profitow <img class="formulaInl" alt="$ p $" src="form_14.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00005">5</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01305">AlgorytmH1()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c4c455795b32257010c9be2b845bddce"></a><!-- doxytag: member="main.h::MSK_P_" ref="c4c455795b32257010c9be2b845bddce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_P_&nbsp;&nbsp;&nbsp;2          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje wektor profitow zredukowanych <img class="formulaInl" alt="$ \overline{p} $" src="form_7.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00006">6</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00882">PoprawLambda()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="7f0b6817300121163223ef6a0a6303f5"></a><!-- doxytag: member="main.h::MSK_TYTUL" ref="7f0b6817300121163223ef6a0a6303f5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_TYTUL&nbsp;&nbsp;&nbsp;1024          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska naglowka 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00012">12</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fe6b2fe5bc7084afbe5f76d0e4be4d0f"></a><!-- doxytag: member="main.h::MSK_V" ref="fe6b2fe5bc7084afbe5f76d0e4be4d0f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_V&nbsp;&nbsp;&nbsp;8          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje wektor dochodowosci <img class="formulaInl" alt="$ v $" src="form_16.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00008">8</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b46c763f901435183a60a90c8065135f"></a><!-- doxytag: member="main.h::MSK_V_" ref="b46c763f901435183a60a90c8065135f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_V_&nbsp;&nbsp;&nbsp;16          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje wektor dochodowosci zredukowanych <img class="formulaInl" alt="$ \overline{v} $" src="form_2.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00009">9</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4c4b917a9256232b587e9af27900045e"></a><!-- doxytag: member="main.h::MSK_W" ref="4c4b917a9256232b587e9af27900045e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_W&nbsp;&nbsp;&nbsp;4          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje wektor wag <img class="formulaInl" alt="$ w $" src="form_15.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00007">7</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00882">PoprawLambda()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="072e387394eca86e5be43efef72251cf"></a><!-- doxytag: member="main.h::MSK_XR" ref="072e387394eca86e5be43efef72251cf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSK_XR&nbsp;&nbsp;&nbsp;128          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska funkcji WypiszWektory. Dodanie jej jako argumentu funkcji wypisuje rozwiazanie zrelaksowane <img class="formulaInl" alt="$ x_r $" src="form_17.png">. <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#644a6088014dbafc3c8055c4801a9a7b">WypiszWektory</a> </dd></dl>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00010">10</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01305">AlgorytmH1()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6c2e0ef3768d7df3cd7565c3d4d5a944"></a><!-- doxytag: member="main.h::SORT_I" ref="6c2e0ef3768d7df3cd7565c3d4d5a944" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SORT_I&nbsp;&nbsp;&nbsp;1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00015">15</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f2c5fd4a2157bbaddee5c93c0cbebb2f"></a><!-- doxytag: member="main.h::SORT_K" ref="f2c5fd4a2157bbaddee5c93c0cbebb2f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SORT_K&nbsp;&nbsp;&nbsp;2          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maska 
<p>Definicja w linii <a class="el" href="main_8h-source.html#l00016">16</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01305">AlgorytmH1()</a>, <a class="el" href="main_8c-source.html#l00882">PoprawLambda()</a>, <a class="el" href="main_8c-source.html#l01078">Relaksacja()</a> i <a class="el" href="main_8c-source.html#l00527">WypiszWektory()</a>.</p>

</div>
</div><p>
<hr><h2>Dokumentacja funkcji</h2>
<a class="anchor" name="80c4e8d2623ecf8dd7f52e97fff4a981"></a><!-- doxytag: member="main.h::AlokujPamiec" ref="80c4e8d2623ecf8dd7f52e97fff4a981" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AlokujPamiec           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>liczbaElementow</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Dynamiczny alokator danych. 
<p>
<dl compact><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>liczbaElementow</em>&nbsp;</td><td>liczba elementow rowna N </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>Zobacz również:</b></dt><dd><a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337" title="Liczba wszystkich mozliwych podmiotow.">N</a></dd></dl>
Przydziela pamiec wektorom wykorzystywanym podczas trwania programu. 
<p>Definicja w linii <a class="el" href="main_8c-source.html#l00225">225</a> pliku <a class="el" href="main_8c-source.html">main.c</a>.</p>

<p>Odwołuje się do <a class="el" href="main_8c-source.html#l00057">ik</a>, <a class="el" href="main_8c-source.html#l00074">ki</a>, <a class="el" href="main_8c-source.html#l00047">p</a>, <a class="el" href="main_8c-source.html#l00053">p_</a>, <a class="el" href="main_8c-source.html#l00033">TRYB_DEBUG</a>, <a class="el" href="main_8c-source.html#l00049">v</a>, <a class="el" href="main_8c-source.html#l00054">v_</a>, <a class="el" href="main_8c-source.html#l00048">w</a> i <a class="el" href="main_8c-source.html#l00091">xr</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l00175">WczytajDaneWejsciowe()</a>.</p>

</div>
</div><p>
<a class="anchor" name="86892a380cb93ebd030dba5a6302be06"></a><!-- doxytag: member="main.h::InicjujDane" ref="86892a380cb93ebd030dba5a6302be06" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InicjujDane           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inicjalizuje czesc wektorow. 
<p>
Inicjalizacja danych, ktorych nie wczytano z pliku (tudziez nie wygenerowano). Czyli wektorow:<ul>
<li>
<img class="formulaInl" alt="$ \overline{p} $" src="form_7.png"> </li>
<li>
<img class="formulaInl" alt="$ v = \frac{p}{w} $" src="form_8.png"> </li>
<li>
<img class="formulaInl" alt="$ ik $" src="form_9.png"> - sekwencyjnie </li>
<li>
<img class="formulaInl" alt="$ ki $" src="form_10.png"> - sekwencyjnie </li>
<li>
<img class="formulaInl" alt="$ xr = 0 $" src="form_11.png"> </li>
<li>
<img class="formulaInl" alt="$ x = 0 $" src="form_12.png"> </li>
</ul>
Ponadto, posortowanie wektorow za pomoca funkcji Sortuj() <dl class="see" compact><dt><b>Zobacz również:</b></dt><dd>Sortuj() .</dd></dl>
Ta funkcja nie powinna byc wywolywana samodzielnie. Jezeli dane zostaly wczytane z pliku, wywolywana jest przez <a class="el" href="main_8c.html#32d9cda086dbd06f8c1fe3f430611d9a" title="Wczytuje dane z pliku.">WczytajDaneWejsciowe()</a> natomiast jezeli zostala wygenerowana, to przez funkcje (...uzupelnic...) 
<p>Definicja w linii <a class="el" href="main_8c-source.html#l00478">478</a> pliku <a class="el" href="main_8c-source.html">main.c</a>.</p>

<p>Odwołuje się do <a class="el" href="main_8c-source.html#l00057">ik</a>, <a class="el" href="main_8c-source.html#l00074">ki</a>, <a class="el" href="main_8c-source.html#l00119">licznikIteracji</a>, <a class="el" href="main_8c-source.html#l00042">N</a>, <a class="el" href="main_8c-source.html#l00047">p</a>, <a class="el" href="main_8c-source.html#l00053">p_</a>, <a class="el" href="main_8c-source.html#l00500">SortujB()</a>, <a class="el" href="main_8c-source.html#l00049">v</a>, <a class="el" href="main_8c-source.html#l00054">v_</a>, <a class="el" href="main_8c-source.html#l00048">w</a> i <a class="el" href="main_8c-source.html#l00091">xr</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01471">AlgorytmH2()</a>, <a class="el" href="main_8c-source.html#l01685">AlgorytmH2Bis()</a>, <a class="el" href="main_8c-source.html#l01570">AlgorytmH2Prim()</a> i <a class="el" href="main_8c-source.html#l00175">WczytajDaneWejsciowe()</a>.</p>

<p>
<div class="dynheader">
Oto graf wywołań dla tej funkcji:</div>
<div class="dynsection">
<p><center><img src="main_8h_86892a380cb93ebd030dba5a6302be06_cgraph.png" border="0" usemap="#main_8h_86892a380cb93ebd030dba5a6302be06_cgraph_map" alt=""></center>
<map name="main_8h_86892a380cb93ebd030dba5a6302be06_cgraph_map">
<area shape="rect" href="main_8c.html#362a3c1431859c5851d11cf139c74b31" title="SortujB" alt="" coords="139,5,203,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="362a3c1431859c5851d11cf139c74b31"></a><!-- doxytag: member="main.h::SortujB" ref="362a3c1431859c5851d11cf139c74b31" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SortujB           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definicja w linii <a class="el" href="main_8c-source.html#l00500">500</a> pliku <a class="el" href="main_8c-source.html">main.c</a>.</p>

<p>Odwołuje się do <a class="el" href="main_8c-source.html#l00057">ik</a>, <a class="el" href="main_8c-source.html#l00074">ki</a>, <a class="el" href="main_8c-source.html#l00042">N</a>, <a class="el" href="main_8c-source.html#l00054">v_</a> i <a class="el" href="main_8c-source.html#l00048">w</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01685">AlgorytmH2Bis()</a>, <a class="el" href="main_8c-source.html#l01570">AlgorytmH2Prim()</a>, <a class="el" href="main_8c-source.html#l00780">AlokujZachlannie()</a>, <a class="el" href="main_8c-source.html#l00478">InicjujDane()</a> i <a class="el" href="main_8c-source.html#l01078">Relaksacja()</a>.</p>

</div>
</div><p>
<hr><h2>Dokumentacja zmiennych</h2>
<a class="anchor" name="647b0fdf81ddfa7573e0f8fcd0708e13"></a><!-- doxytag: member="main.h::KP01_D" ref="647b0fdf81ddfa7573e0f8fcd0708e13" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#647b0fdf81ddfa7573e0f8fcd0708e13">KP01_D</a> = &quot;param <a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>;\nparam <a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\nparam <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nvar x {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0;\nvar b {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0, integer;\n\ns.t. ogr_1 { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tx[i] &lt;= b[i];\n\ns.t. binar { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tb[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a>[i] &lt;= <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\n\ns.t. liczba_elementow:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} b[i] &lt;= <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nmaximize z:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a>[i];\n\nend;\n&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00024">24</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01844">GLPK_R_D()</a> i <a class="el" href="main_8c-source.html#l02018">main()</a>.</p>

</div>
</div><p>
<a class="anchor" name="689c7814b58c9ff6a60412016bb1ab9f"></a><!-- doxytag: member="main.h::KP01_R" ref="689c7814b58c9ff6a60412016bb1ab9f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#689c7814b58c9ff6a60412016bb1ab9f">KP01_R</a> = &quot;param <a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>;\nparam <a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a> {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>};\nparam <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\nparam <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nvar x {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} &gt;= 0;\n\ns.t. ogr_1 { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>}:\n\tx[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#95b0e3277cc37e1b347b4521b9942d42">w</a>[i] &lt;= <a class="el" href="main_8c.html#4e1e0e72dd773439e333c84dd762a9c3">c</a>;\n\ns.t. liczba_elementow:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i] &lt;= <a class="el" href="main_8c.html#2689c4b3931025b79053532a5f1b0a85">K</a>;\n\nmaximize z:\n\tsum {i in 1..<a class="el" href="main_8c.html#7722c8ecbb62d99aee7ce68b1752f337">N</a>} x[i]*<a class="el" href="main_8c.html#61b0821c8ee2a2df1d8cf38ebe0f2b3c">p</a>[i];\n\nend;\n&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definicja w linii <a class="el" href="main_8h-source.html#l00025">25</a> pliku <a class="el" href="main_8h-source.html">main.h</a>.</p>

<p>Odwołania w <a class="el" href="main_8c-source.html#l01844">GLPK_R_D()</a> i <a class="el" href="main_8c-source.html#l02018">main()</a>.</p>

</div>
</div><p>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>_</title></head>
<body><hr style="width: 100%; height: 2px;"><table style="text-align: left; width: 100%; height: 34px;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;"><small style="font-family: Helvetica,Arial,sans-serif;"><span style="font-style: italic;">Dokumentacja pracy in&#380;ynierskiej,&nbsp;Kacper D. Tom&#380;y&#324;ski</span></small><big><br></big></td><td style="text-align: right; vertical-align: top;"><img style="width: 42px; height: 33px;" alt="" src="img/IAlogo0.gif" align="top" vspace="10"><small> &nbsp;</small><img style="width: 42px; height: 59px;" alt="" src="img/eiti.GIF"></td></tr></tbody></table><br></body></html>
